package com.virtium.vpm.form;

public class ProjectRowForm implements Comparable<ProjectRowForm>{
	private String tableId;
	private String majorTaskid;
	private String type;	
	private String typeID;
	private String priority;
	private String majorTask;
	private String owner;
	private String userID;
	private String startDate;
	private String finishDate;
	private String cost;
	private String achieved;
	private String keyIssues;
	private String decisionNeed;
	
	public ProjectRowForm(String tableId,String majorTaskid,String typeID,String userID,String type,String priority, String majorTask, String owner,
			String startDate, String finishDate, String cost, String achieved,
			String keyIssues, String decisionNeed) {
		super();
		this.tableId = tableId;
		this.majorTaskid = majorTaskid;
		this.typeID = typeID;
		this.userID = userID;
		this.type = type;
		this.majorTask = majorTask;
		this.owner = owner;
		this.startDate = startDate;
		this.finishDate = finishDate;
		this.cost = cost;
		this.achieved = achieved;
		this.keyIssues = keyIssues;
		this.decisionNeed = decisionNeed;
		this.priority = priority;
	}
	
	
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getMajorTask() {
		return majorTask;
	}
	public void setMajorTask(String majorTask) {
		this.majorTask = majorTask;
	}
	public String getOwner() {
		return owner;
	}
	public void setOwner(String owner) {
		this.owner = owner;
	}
	public String getStartDate() {
		return startDate;
	}
	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}
	public String getFinishDate() {
		return finishDate;
	}
	public void setFinishDate(String finishDate) {
		this.finishDate = finishDate;
	}
	public String getCost() {
		return cost;
	}
	public void setCost(String cost) {
		this.cost = cost;
	}
	public String getAchieved() {
		return achieved;
	}
	public void setAchieved(String achieved) {
		this.achieved = achieved;
	}
	public String getKeyIssues() {
		return keyIssues;
	}
	public void setKeyIssues(String keyIssues) {
		this.keyIssues = keyIssues;
	}
	public String getDecisionNeed() {
		return decisionNeed;
	}
	public void setDecisionNeed(String decisionNeed) {
		this.decisionNeed = decisionNeed;
	}
	
	public String getTableId() {
		return tableId;
	}



	public void setTableId(String tableId) {
		this.tableId = tableId;
	}



	public String getMajorTaskid() {
		return majorTaskid;
	}



	public void setMajorTaskid(String majorTaskid) {
		this.majorTaskid = majorTaskid;
	}
	public String getTypeID() {
		return typeID;
	}



	public void setTypeID(String typeID) {
		this.typeID = typeID;
	}



	public String getUserID() {
		return userID;
	}



	public void setUserID(String userID) {
		this.userID = userID;
	}
	public String getPriority() {
		return priority;
	}



	public void setPriority(String priority) {
		this.priority = priority;
	}

	public int compareTo(ProjectRowForm o) {
		Integer p1 = Integer.parseInt(this.getPriority());
		Integer p2 = Integer.parseInt(o.getPriority());
		return -(p1.compareTo(p2)); 
	}
}
